﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SIAKADCORE.Models
{
    public class NilaiR
    {
        #region Constants
        public const int IdLength = 10;
        public const string IdPrefix = "NR";
        public const string TableName = "[dbo].[nilai_r]";
        public const string ColumnNameIdNilaiR = "[id_nilai_r]";
        public const string ColumnNameIdTabelR = "[id_tabel_r]";
        public const string ColumnNameNilaiR = "[nilai_r]";
        #endregion

        #region  Fields
        private string idNilaiR;
        private string idTabelR;
        private double isiNilaiR;
        #endregion

        #region Properties
        public string IdNilaiR
        {
            get { return this.idNilaiR; }
            set { this.idNilaiR = value; }
        }

        public string IdTabelR
        {
            get { return this.idTabelR; }
            set { this.idTabelR = value; }
        }
        public double IsiNilaiR
        {
            get { return this.isiNilaiR; }
            set { this.isiNilaiR = value; }
        }
        #endregion

        #region Constructors
        public NilaiR()
        {
        }
        public NilaiR(string idNilaiR, string idTabelR, double isiNilaiR)
        {
            this.idNilaiR = idNilaiR;
            this.idTabelR = idTabelR;
            this.isiNilaiR = isiNilaiR;
        }
        #endregion

        public override string ToString()
        {
            return string.Format("ID_NILAI_R: {0} | ID_TABEL_R: {1} | ISI_NILAI_R", this.idNilaiR, this.idTabelR, this.isiNilaiR);
        }

    }
}
